//
//  ViewController.m
//  stuInfo
//
//  Created by student on 13-12-5.
//  Copyright (c) 2013年 student. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)buttonPressed:(id)sender
{
    self.outputField.text = [NSString stringWithFormat:@"学生姓名:%@\n学生年龄:%@",self.inputNameField.text,self.inputAgeField.text];
    
    self.inputNameField.text = @"";
    self.inputAgeField.text = @"";
    
    [self.inputNameField resignFirstResponder];
    [self.inputAgeField resignFirstResponder];
}
@end
